<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="format-detection" content="telephone=no" />
    <title>全部订单</title>
    <link type="text/css" rel="stylesheet" href="../addons/bsht_tbk/res/css/uc_plus.css">
<script src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="{$res}js/mui.min.js"></script>
<link rel="stylesheet" type="text/css" href="{$res}css/mui.min.css" />
<link rel="stylesheet" type="text/css" href="{$res}css/app.css" />
<link href="{$res}css/plus.css" rel="stylesheet" type="text/css"/>
    <script>
        var deviceWidth = document.documentElement.clientWidth;
        if (deviceWidth > 750) deviceWidth = 750;
        document.documentElement.style.fontSize = deviceWidth / 7.5 + "px";
        document.documentElement.style.width = "100%";
    </script>
<body>

<style>
.allorder ul {
padding-top:10px
}

.allorder li {
    width: 100%;
    padding: 0 0.2rem;
    position: relative;
	border-top: 5px solid #fff;
    border-bottom: 5px solid #fff;
}
</style>
<div class="ordernav" style="position:fixed:top:0px">
        <a href="{php echo $this->createMobileUrl('uc_dd_dcl',array('openid'=>$_GPC['openid']));}" class="cur jumpurl" id="dcl"><span>待处理</span></a>
        <a href="{php echo $this->createMobileUrl('uc_dd_ycl',array('openid'=>$_GPC['openid']));}" class="jumpurl" id="ycl"><span>已处理</span></a>
</div>
<div id="offCanvasWrapper" class="mui-off-canvas-wrap mui-draggable">


 <!--主界面部分-->
			<div class="mui-inner-wrap">
				
				<div id="offCanvasContentScroll" class="mui-content mui-scroll-wrapper">
					<div class="mui-scroll" style="width:100%;margin-left:-10px">
						<div class="mui-content-padded">





    <div id="containter" class="container">
        


<div class="allorder">
    <ul id="lists">
       
    </ul>
	<div class="nocoll" id="list_more"><p>这里还没有订单呢</p></div>
</div>

</div>




</div>
				<!-- off-canvas backdrop -->
				<div class="mui-off-canvas-backdrop"></div>
			</div>




</div>


<script> 
var limit = 1;
function get_list(){	
	$("#list_more").html('<p>卖命加载中</p>');
	$.ajax({
	    type : "post",
	    url : "{php echo $this->createMobileUrl('uc_dd_dcl',array('openid'=>$_GPC['openid'],'op'=>'list'))}",
	    data : {
	    	limit:limit,
	    },
        dataType : "json",		
	    success : function(data) {
	    	if(data.status==200){
						var list = data.content;
						var content = '';
						$(".paihang2").append(list);
						for(var i=0; i<list.length; i++){
						
						content = '<li style="width:100%"><div class="allorderheader"><!--【'+list[i]['time']+'】-->订单号：'+list[i]['orderid']+'<span style="color:green">&nbsp;('+list[i]['fl']+')</span></div><li>';
							$("#lists").append(content);
						}
						
						if(list.length==10){
							$("#list_more").html('<p>点击查看更多</p>');
						}else{
							$("#list_more").html('');
						}
						
						$("#list_more").html('<span></span>');
						limit++;		
		    }else if(data.status==-103){
	    		$("#list_more").html('<p>没有更多记录</p>');
	    	}else{
			    $("#list_more").html('<p>没有更多记录</p>');
			}    	
	    },
	    error : function(xhr, type) {

	    }
	});
}
get_list();
</script>


<script>
mui.init({
});
//主界面和侧滑菜单界面均支持区域滚动；
mui('#offCanvasSideScroll').scroll();
mui('#offCanvasContentScroll').scroll();
mui("#wrapper").on("tap", ".jumpurl", function (){
//alert($(this).attr("href"));
var url=$(this).attr("href");
var id=$(this).attr("id");
//alert(url);
mui.openWindow({
url: url,
id: id
});
})
</script>
</body>
</html>